import Vue from "vue";
import Vuex from "vuex";
import actions from "./actions";
import getters from "./getters";
import mutations from "./mutations";
import { modulePage } from "./module/modulePage";
import { moduleLoading } from "./module/moduleLoading";
import { moduleLogin } from './module/moduleLogin';

Vue.use(Vuex);

const state = {
  fullPage: false,
  fetchLoading: false,
  navData: [],
  isLogined: false,
  subMenu: {},
  authMenu: [],
  approveProject: {},
  currentUser: {},
  detailCertifyId: {},
  idNumberUserId: {},
  postInfo:{},
  nodeMan:'',
  currentPageInfor:{},
  userInfo:{},
};

export default new Vuex.Store({
  modules: {
    page: modulePage,
    loading: moduleLoading,
    login:moduleLogin,
  },
  state,
  getters,
  mutations,
  actions
});
